import Request from "../../../../utils/request.js";
export default class {
  static getAuctionDetail(params) {
    return Request({
      url: `app/seckill/queryDetail/${params}`,
      type: "GET",
      data: {type:2},
      headers: {
        "Content-type": "application/x-www-form-urlencoded" 
      },
    })
  }
  static queryCurrentDetail(params) {
    return Request({
      url: `app/seckill/queryCurrentDetail`,
      type: "POST",
      data: params
    })
  }
  
  static createFavorite(params) {
    return Request({
      url: `app/favorite/follow`,
      type: "GET",
      data: params,
      headers: {
        "Content-type": "application/x-www-form-urlencoded"
      },
    })
  }
  static flagMoney(params) {
    var accountId = wx.getStorageSync('userId');
    return Request({
      url: "app/wallet/center/getWalletUser",
      type: "POST",
      data: {...params,accountId}
    })
  }
  static enroll(params) {
    return Request({
      url: "app/seckill/enroll",
      type: "POST",
      data: params
    })
  }
} 